package com.shopper.manager.mapper;

import com.shopper.manager.model.customer.req.*;
import com.shopper.manager.model.customer.result.OrderListResultBean;
import com.shopper.manager.model.order.OrderCategoryBean;
import com.shopper.manager.model.order.req.GoodsListReq;
import com.shopper.manager.model.order.req.GoodsNormsAttributeReq;
import com.shopper.manager.model.order.req.NormsAttributeInsertReq;
import com.shopper.manager.model.order.req.NormsReq;
import com.shopper.manager.model.order.result.GoodsResultBean;
import com.shopper.manager.model.order.result.NormsBean;
import com.shopper.manager.model.order.result.OrderCategoryGoodsBean;

import java.util.List;
import java.util.Map;

public interface CustomerMapper {
    int registerCustomer(RegisteredReq req);//注册用户
    RegisteredReq selectAccount(RegisteredReq req);//查询用户账户是否存在
    int updateToken(RegisteredReq req);//更新token
    int insertCustomerInfo(CustomerInfoReq req);//注册用户
    CustomerInfoReq selectUidAccount(int userId);//根据id查询账号信息
    int createOrder(AddOrderReq req);//用户下单
    GoodsResultBean getGoodInfo(GoodsListReq req);//根据id获取商品
    int createOrderGoods(OrderGoodsReq req);
    List<GoodsResultBean> getGoodsList(GoodsListReq req);//获取商品列表
    NormsBean getOrderNorms(NormsReq req);//获取商品订单规格
    List<NormsAttributeInsertReq> getGoodNormsAttributeList(GoodsNormsAttributeReq devicesIds);//获取规格属性列表
    List<OrderCategoryGoodsBean> selectGoodsCategory(String businessLicense);//查询品类列表
}
